﻿{extend name="layout/base" /}

{block name="meta"}
{__block__}
<link rel="stylesheet" type="text/css" href="__ADDON__/__STYLE__/css/help.css" media="all">
<style>
  .h-hide ul{display:none}
  .h-hide p{margin:14px 5px 0 0;float:right;display:inline-block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid#ccc}
  #parent>li>span{display:block;padding-left:10px;background:#eaeaea;border-bottom:1px solid #fff}#parent>li>span:hover{cursor:pointer;background:#dadada}
  #parent>li{line-height:33px;display:block}
  .h-show ul{display:block}
  .h-show p{margin:14px 5px 0 0;float:right;display:inline-block;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid#ccc}
  .h-list{border:1px solid #dedede}
  .h-list li{width:177px;line-height:20px;margin:5px 0 5px 10px;padding:2px 0;padding-left:20px;cursor:pointer}
  .h-list .h-curr{margin-left:10px}
  .h-curr{background:rgba(0,0,0,0) linear-gradient(to right,#eaeaea,#fff) repeat scroll 0 0;border-color:#dedede;border-image:none;border-width:1px;color:green;font-weight:bold}
  .h-list a:hover li{color:green;font-weight:bold}

</style>

{/block}

{block name="body"}
<body class="single_post_page">
{/block}

{block name="main"}
<!-- Breadcrumbs -->
<div class="breadcrumbs">
  <div class="container">
    <div class="row">
      <div class="col-xs-12">
        <ul>
          <li class="home"> <a title="{:__('Go to Home Page')}" href="{:addon_url('mall')}">{:__('Home')}</a></li>
          {if empty($bcNav)}
          <li>
            <span>&raquo;</span>
            <span><strong>  全部资讯</strong></span>
          </li>
          {else/}
          {volist name="bcNav" id='bc'}
          <li>
            <span>&raquo;</span>
            <a href='{:addon_url("mall/help/index",["catId"=>$bc["id"]])}'><strong>  {$bc['name']}</strong></a>
          </li>
          {/volist}
          {/if}
        </ul>
      </div>
    </div>
  </div>
</div>
<!-- Breadcrumbs End -->

 <!-- Main Container -->
  <section class="blog_post">
    <div class="container">
      <div class="row">
        <!-- Left colunm -->
        <aside class="left sidebar col-xs-12 col-sm-3">
          <!-- Blog category -->
          <div class="block blog-module">
            <div class="sidebar-bar-title">
              <h3>资讯中心</h3>
            </div>
            <div class="block_content">
              <!-- layered -->
              <div class="layered layered-category">
                <div class="layered-content">
                  <ul id="parent">
                    {volist name="$list" id="bc" }
                    <li class="h-cat h-show">
                      <span>{$bc['name']}<p></p></span>
                      <ul class="h-list">
                        {volist name="$bc['children']" id="v1" key="k1"}
                        <a href="{:addon_url('mall/help/index',['catId'=>$v1['id']])}">
                          <li class="{if ($v1['id']==$catId)}h-curr{/if}">{$v1['name']}（{$v1['newsCount']}）</li>
                        </a>
                        {/volist}
                      </ul>
                    </li>
                    {/volist}
                  </ul>
                </div>
              </div>
              <!-- ./layered -->
            </div>
          </div>
          <!-- ./blog category  -->
        </aside>
        <!-- ./left colunm -->
        <div class="col-xs-12 col-sm-9">
          <div class="entry-detail">
            <div class="page-title">
              <h1>{$content.articleTitle}</h1>
            </div>
            <div class="entry-photo">
              <figure><img src="{$content.coverimg}"></figure>
            </div>
            <div class="entry-meta-data">
              <span class="author"> <i class="fa fa-user"></i>&nbsp; by: <a href="#">{$content['nickname']}</a></span>
              <span class="cat"> <i class="fa fa-eye"></i>&nbsp; {$content['visitorNum']} </span>
              <span class="comment-count"> <i class="fa fa-comment"></i>&nbsp; {$content['solve']+$content['unsolve']} </span>
              <span class="date"><i class="fa fa-calendar"></i>&nbsp; {$content['updatetime']|date="y-m-d",###}</span>
            </div>
            <div class="content-text clearfix">
              {:htmlspecialchars_decode($content.acontent)}
            </div>
            <div class="entry-tags">
              <span>关键词:</span> {$content['articleKey']}
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
  <!-- Main Container End -->
  {/block}
